package com.nengchuan.eic.nceconomy.entity.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author panwen
 * @description: 单位信息VO
 * @create: 2020-05-15 15:23
 * @version: 1.0
 */
@Data
public class OrgInfoDTO {
    @ApiModelProperty("单位ID")
    private Long id;

    @ApiModelProperty("单位名称")
    private String name;

    @ApiModelProperty("设计评审单位")
    private String typeName;

    @ApiModelProperty("技经管理员集合")
    private List<ManagerDTO> admins;

    @ApiModelProperty("技经主管集合")
    private List<ManagerDTO> managers;

    @Data
    public static class ManagerDTO{
        @ApiModelProperty("管理员ID")
        private Long managerId;

        @ApiModelProperty("管理员名称")
        private String managerName;

        //控制字段,不序列化
        @JsonIgnore
        private String roleCode;

        @JsonIgnore
        private Long orgId;
    }
}
